<extend name="Public/common" />
<block name="body">
<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <h3>清理缓存</h3>
    </div>
  </div>
  <div class="fixed-empty"></div>
  <form id="form1" name="form1" method="post">
    <table class="table nobdb">
      <tbody>
        <tr>
          <td colspan="2"><table class="table nomargin">
              <tbody>
                <tr>
                  <td class="required"><input id="cls_full" name="cls_full" value="1" type="checkbox">
                    &nbsp;
                    <label for="cls_full">全选</label></td>
                </tr>
                <tr class="noborder">
                  <td class="vatop rowform"><ul class="nofloat w830">
                      <li class="left w18pre">
                        <label>
                          <input type="checkbox" name="cache[]" id="setting" value="setting" >
                          &nbsp;系统配置</label>
                      </li>
                      <li class="left w18pre">
                        <label>
                          <input type="checkbox" name="cache[]" id="area" value="area" >
                          &nbsp;区域管理</label>
                      </li>
                      <li class="left w18pre">
                        <label>
                          <input type="checkbox" name="cache[]" id="admin_module" value="admin_module" >
                          &nbsp;管理后台模块</label>
                      </li>          
                      <li class="left w18pre">
                        <label>
                          <input type="checkbox" name="cache[]" id="admin_group" value="admin_group" >
                          &nbsp;管理后台权限组</label>
                      </li>
                      <li class="left w18pre">
                        <label>
                          <input type="checkbox" name="cache[]" id="goods" value="goods" >
                          &nbsp;商品信息</label>
                      </li>
                      <li class="left w18pre">
                        <label>
                          <input type="checkbox" name="cache[]" id="channel" value="channel" >
                          &nbsp;渠道信息</label>
                      </li>
                      <li class="left w18pre">
                        <label>
                          <input type="checkbox" name="cache[]" id="store" value="store" >
                          &nbsp;商户资料</label>
                      </li>
                      <li class="left w18pre">
                        <label>
                          <input type="checkbox" name="cache[]" id="region" value="region" >
                          &nbsp;楼宇信息</label>
                      </li>
                      <li class="left w18pre">
                        <label>
                          <input type="checkbox" name="cache[]" id="store_list" value="store_list" >
                          &nbsp;商户列表</label>
                      </li>
                      <li class="left w18pre">
                        <label>
                          <input type="checkbox" name="cache[]" id="coupon" value="coupon" >
                          &nbsp;优惠券信息</label>
                      </li>
                      <!--<li class="left w18pre">-->
                        <!--<label>-->
                          <!--<input type="checkbox" name="cache[]" id="store_module" value="store_module" >-->
                          <!--&nbsp;商户模块</label>-->
                      <!--</li>-->
                      <!--<li class="left w18pre">-->
                        <!--<label>-->
                          <!--<input type="checkbox" name="cache[]" id="express" value="express" >-->
                          <!--&nbsp;快递公司</label>-->
                      <!--</li>-->
                    </ul></td>
                </tr>
              </tbody>
            </table></td>
        </tr>
      </tbody>
      <tfoot>
        <tr class="tfoot">
          <td colspan="2"><a href="JavaScript:void(0);" class="btn" id="submit"><span>提交</span></a></td>
        </tr>
      </tfoot>
    </table>
  </form>
</div>
<script>
//按钮先执行验证再提交表
$(function(){
	$("#submit").click(function(){
		if($('input[name="cache[]"]:checked').size()>0){
			$("#form1").submit();
		}
	});

	$('#cls_full').click(function(){
		$('input[name="cache[]"]').attr('checked',$(this).attr('checked') == 'checked');
	});
});
</script>
</block>
